<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
    <div id="app">
        <ol>
            <li v-for="site in search(keywords)">
                {{ site.name }}
            </li>
        </ol>
    </div>

    
    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                name: '',
                keywords: 'Runoob',
                sites: [
                    { name: 'Runoob' },
                    { name: 'Google' },
                    { name: 'Taobao' }
                ]
            },
            methods:{
                search(keywords) {
                    return this.sites.filter(item => {
                        console.log(item.name)
                        console.log(keywords)
                        if (item.name != keywords) {
                            return item;
                        }
                        
                    })
                }
            }
            
        })
    </script>
</body>

</html>